<template id="JingXuan">
  <section class="JingXuan-section">
    <div>
      <!-- <div class="background-red"></div> -->
    </div>
    <div class="jx-bigswipe">
      <div class="jx-swipe">
        <mt-swipe @change="handleChange">
          <mt-swipe-item>
            <img src="../../../data/assets/images/swipe01.png" alt />
          </mt-swipe-item>
          <mt-swipe-item>
            <img src="../../../data/assets/images/swipe02.png" alt />
          </mt-swipe-item>
          <mt-swipe-item>
            <img src="../../../data/assets/images/swipe03.png" alt />
          </mt-swipe-item>
          <mt-swipe-item>
            <img src="../../../data/assets/images/swipe04.png" alt />
          </mt-swipe-item>
          <mt-swipe-item>
            <img src="../../../data/assets/images/swipe05.png" alt />
          </mt-swipe-item>
          <mt-swipe-item>
            <img src="../../../data/assets/images/swipe06.png" alt />
          </mt-swipe-item>
          <mt-swipe-item>
            <img src="../../../data/assets/images/swipe07.png" alt />
          </mt-swipe-item>
          <mt-swipe-item>
            <img src="../../../data/assets/images/swipe08.png" alt />
          </mt-swipe-item>
        </mt-swipe>
      </div>
    </div>
    <div class="JingXuan-nav">
      <div>
        <ul>
          <li v-for="(v,i) in list01">
            <router-link to="/">
              <div class="JingXuan-nav-wrapimg">
                <img :src="v.src" alt />
              </div>
              <p>{{v.con}}</p>
            </router-link>
          </li>
        </ul>
      </div>
    </div>
    <div class="bottom01"></div>
    <div class="jinribipin">
      <div class="jinribipin-nav">
        <div class="wrap">
          <div class="left">
            <img src="../../../data/assets/images/jinribipin.png" alt />
          </div>
          <div class="right">
            <router-link to="/">
              <p>更多</p>
              <span></span>
            </router-link>
          </div>
        </div>
        <!-- <div class="center">
                    <img src="../../../data/assets/images/jinribipin-right.png" alt="">
        </div>-->
      </div>
      <div class="wrap-ul">
        <ul>
          <li v-for="(v,i) in list02">
            <img :src="v.src" alt />
            <div class="red-money">
              <div class="one">{{v.one}}</div>
              <div class="two">{{v.two}}</div>
              <div class="thress">{{v.thress}}</div>
            </div>
            <p>{{v.p}}</p>
          </li>
        </ul>
      </div>
    </div>
    <div class="gongchang-zhibo">
      <div class="gongchang-zhibo-wrap">
        <div class="gongchang">
          <div class="gongchang-nav">
            <p class="onep">工厂直供</p>
            <p class="twop">专业厂检质检</p>
          </div>
          <div class="gongchang-con">
            <ul>
              <li class="oneli">
                <div class="gongchang-img">
                  <img src="../../../data/assets/images/gongchang.png" alt />
                </div>
                <div class="gongchang-p">产自浙江金华</div>
                <div class="red-money">
                  <div class="one">￥</div>
                  <div class="two">1</div>
                  <div class="thress">.99</div>
                </div>
              </li>
              <li>
                <div class="gongchang-img">
                  <img src="../../../data/assets/images/gongchang02.png" alt />
                </div>
                <div class="gongchang-p">产自浙江义乌</div>
                <div class="red-money">
                  <div class="one">￥</div>
                  <div class="two">5</div>
                  <div class="thress">.9</div>
                </div>
              </li>
            </ul>
          </div>
        </div>
        <div class="zhibo">
          <div class="zhibo-nav">
            <p class="onep">京喜直播</p>
            <p class="twop">看直播领红包</p>
          </div>
          <div class="zhibo-con">
            <ul>
              <li class="oneli">
                <div class="zhibo-img">
                  <img src="../../../data/assets/images/gczhibo01.png" alt />
                </div>
                <div class="zhibo-p">特惠福利零食</div>
                <div class="zhoboing">
                  <img src="../../../data/assets/images/zhiboing.gif" alt />
                </div>
              </li>
              <li class="oneli">
                <div class="zhibo-img">
                  <img src="../../../data/assets/images/gczhibo02.png" alt />
                </div>
                <div class="zhibo-p">低至4.9</div>
                <div class="zhoboing">
                  <img src="../../../data/assets/images/zhiboing.gif" alt />
                </div>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="recommend-wrap">
      <div class="recommend">
        <div class="recommend-nav">
          <mt-navbar v-model="selected">
            <mt-tab-item id="1">
              今日推荐
              <span>爆款热卖</span>
            </mt-tab-item>
            <mt-tab-item id="2">
              京东商城
              <span>自营优选</span>
            </mt-tab-item>
          </mt-navbar>
        </div>
        <div class="recommend-con">
          <mt-tab-container v-model="selected">
            <mt-tab-container-item id="1">
              <ul>
                <li v-for="(v,i) in list03">
                  <div class="left"><img :src="v.img01" alt=""></div>
                  <div class="right">
                    <div class="title">
                      <p>{{v.p01}}</p>
                    </div>
                    <div class="goods-icons">
                      <div class="one">
                        <img :src="v.img02" alt="">
                        <p>{{v.p02}}</p>
                        </div>
                      <div class="two">
                        <img :src="v.img03" alt="">
                        <p>{{v.p03}}</p>
                      </div>
                    </div>
                    <div class="bottom">
                      <div class="money">
                        <p>{{v.p04}}<i>{{v.i01}}</i>{{v.p05}}</p>
                        <img :src="v.img04" alt="">
                      </div>
                      <div class="pin">
                        <div>{{v.p06}}</div>
                        <p>{{v.p07}}</p>
                      </div>
                    </div>
                  </div>
                </li>
              </ul>
            </mt-tab-container-item>
            <mt-tab-container-item id="2">
              <ul>
                <li v-for="(v,i) in list04">
                  <div class="left"><img :src="v.img01" alt=""></div>
                  <div class="right">
                    <div class="title">
                      <p>{{v.p01}}</p>
                    </div>
                    <div class="goods-icons">
                      <div class="one">
                        <img :src="v.img02" alt="">
                        <p>{{v.p02}}</p>
                        </div>
                      <div class="two">
                        <img :src="v.img03" alt="">
                        <p>{{v.p03}}</p>
                      </div>
                    </div>
                    <div class="bottom">
                      <div class="money">
                        <p>{{v.p04}}<i>{{v.i01}}</i>{{v.p05}}</p>
                        <img :src="v.img04" alt="">
                      </div>
                      <div class="pin">
                        <div>{{v.p06}}</div>
                        <p>{{v.p07}}</p>
                      </div>
                    </div>
                  </div>
                </li>
              </ul>
            </mt-tab-container-item>
          </mt-tab-container>
        </div>
      </div>
    </div>
  </section>
</template>
<script >
export default {
  data() {
    return {
      list01: [],
      list02: [],
      list03: [],
      list04:[],
      selected:"1"
    };
  },
  mounted() {
    this.$http
      .get("./data/jingxuan.json")
      .catch(function(error) {
        console.log(error);
      })
      .then(res => {
        (this.list01 = res.data.list01),
        (this.list02 = res.data.list02),
        (this.list03 = res.data.list03),
        (this.list04 = res.data.list04);
      });
  },
  methods: {
    handleChange(index) {
      //  this.index=index
    }
  }
};
</script>
<style>
.jx-swipe .mint-swipe-items-wrap {
  padding-bottom: 29%;
}
.jx-swipe .mint-swipe-indicator {
  background: #d8d8d8;
}
.jx-swipe .mint-swipe-indicators {
  bottom: 0px;
}
.jx-swipe .mint-swipe-indicator {
  opacity: 0.8;
}
.jx-swipe .mint-swipe-indicator.is-active {
  background: #fff;
}
.recommend-nav .mint-navbar .mint-tab-item{
  background: #F0F0F0;
  color: #333;
  font-weight: 700;
}
.recommend-nav .mint-tab-item-label{
  font-size: 1.1rem;
}
.recommend-nav .mint-navbar{
  overflow: hidden;
}
.recommend-nav .mint-navbar .mint-tab-item.is-selected{
  color: #ff4142;
  border-bottom:none;
}
.recommend-nav .mint-navbar .mint-tab-item.is-selected span{
  color: #fff;
  background: #ff4142;
  border-radius: 0.5rem;
}
.recommend-con .mint-tab-container-item{
  background: #F0F0F0;
}
</style>
<style scoped>
* {
  list-style: none;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
.jx-swipe img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}
.background-red {
  width: 100%;
  height: 500px;
  background: url(../../assets/images/4944a8cff1b2b1a7.png) no-repeat;
  background-size: 100% auto;
  margin-top: -200px;
}
.jx-bigswipe {
  background: url(../../assets/images/4944a8cff1b2b1a7.png) no-repeat;
  background-size: 100% auto;
  background-position: 0% 100%;
  margin-top: -1px;
}
.jx-swipe {
  width: 90%;
  /* margin: 0 10px; */
  margin: 0px auto;
  padding-top: 10px;
}
.JingXuan-nav {
  padding: 0 10px;
  padding-top: 10px;
}
.JingXuan-nav ul {
  display: flex;
  flex-wrap: wrap;
}
.JingXuan-nav li {
  width: 20%;
  text-align: center;
  margin-bottom: 0.5rem;
}
.JingXuan-nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.7rem;
}
.JingXuan-nav img {
  width: 100%;
}
.JingXuan-nav-wrapimg {
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  margin-bottom: 0.25rem;
}
.bottom01 {
  height: 0.975rem;
  background: url(../../../data/assets/images/bottom01.png) no-repeat;
  background-size: 100% auto;
}
.red-money {
  display: flex;
  color: red;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  margin-bottom: 3px;
}
.red-money .one {
  font-size: 0.8rem;
}
.red-money .two {
  font-size: 1rem;
  margin-top: -0.2rem;
}
.red-money .thress {
  font-size: 0.8rem;
}
.jinribipin {
  margin: 0 10px;
}
.jinribipin .wrap-ul {
  overflow-y: auto;
}
.jinribipin ul {
  display: flex;
  width: 60rem;
  margin-bottom: 8px;
}
.jinribipin li {
  width: 6rem;
  margin: 0 5px;
}
.jinribipin img {
  width: 100%;
  border-radius: 0.25rem;
}
.jinribipin p {
  color: #aaa;
  font-size: 0.7rem;
  text-align: center;
}
.jinribipin-nav .wrap {
  display: flex;
  justify-content: space-between;
}
.jinribipin-nav {
  margin: 8px 0;
}
.jinribipin-nav .left {
  width: 4rem;
  margin-top: 5px;
}
.jinribipin-nav img {
  width: 100%;
}
.jinribipin-nav .center {
  width: 100%;
  margin-top: -30px;
}
.jinribipin-nav .right p {
  display: inline-block;
}
.jinribipin-nav .right span {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-top: 0.1rem solid #ccc;
  border-left: 0.1rem solid #ccc;
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
  top: -0.06rem;
  left: -0.05rem;
  position: relative;
  margin-left: 0.25rem;
}
.jinribipin-nav .right a {
  text-decoration: none;
}
.gongchang-zhibo {
  background: #F0F0F0;
  
}
.gongchang-zhibo-wrap {
  display: flex;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.gongchang {
  width: 50%;
  border-right: 1px solid #f0f0f0;
  padding: 10px;
}
.gongchang-nav {
  display: flex;
  padding-bottom: 5px;
}

.gongchang-zhibo .onep {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}
.gongchang-zhibo .red-money {
  font-weight: 400;
}
.gongchang-zhibo .twop {
  font-size: 0.8rem;
  color: #666;
  padding-left: 5px;
  margin-top: 3px;
}
.gongchang-con ul {
  display: flex;
}
.gongchang-con li {
  width: 50%;
}
.gongchang-con .oneli {
  margin-right: 0.5rem;
}
.gongchang-con img {
  width: 100%;
  border-radius: 0.3rem 0.3rem 0px 0px;
}
.gongchang-con .gongchang-p {
  text-align: center;
  font-size: 0.65rem;
  color: #fff;
  background: #395ee4;
  margin-top: -5px;
  border-radius: 0px 0px 0.3rem 0.3rem;
  margin-bottom: 10px;
  line-height: 1.1rem;
}
.JingXuan-section {
  height: calc(100vh - 40.8px - 114.8px);
  overflow-y: auto;
}
.zhibo-nav {
  display: flex;
  padding-bottom: 5px;
}
.zhibo {
  width: 50%;
  padding: 10px;
}
.zhibo-con img {
  width: 100%;
  border-radius: 0.3rem 0.3rem 0px 0px;
}
.zhibo-con ul {
  display: flex;
}
.zhibo-con li {
  width: 50%;
  position: relative;
}
.zhibo-con .oneli {
  margin-right: 0.5rem;
}
.zhibo-con .zhibo-p {
  text-align: center;
  font-size: 0.65rem;
  color: #fff;
  background: red;
  margin-top: -5px;
  border-radius: 0px 0px 0.3rem 0.3rem;
  margin-bottom: 10px;
  line-height: 1.1rem;
}
.zhoboing {
  position: absolute;
  top: -5px;
  left: 0px;
  width: 2.675rem;
  height: 0.475rem;
}
.zhoboing img {
  width: 100%;
  border-radius: 0.3rem 0.3rem 0.3rem 0px;
}
.recommend-nav{
  background: #F0F0F0;
}
.recommend-nav span{
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  width: 4.4rem;
  margin: 0 auto;
  margin-top: 5px;
  line-height: 18px;
  text-align: center;
}
.recommend-con ul{
  background: #fff;
  border-radius: 10px 10px 10px 10px;
  padding: 10px;
}
.recommend-con li{
  display: flex;
  margin-bottom: 10px;
}
.recommend-con .left{
  width: 40%;
}
.recommend-con .left img{
  width: 100%;
  border-radius: 10px;
}
.recommend-con .right{
  width: 60%;
  padding-left: 10px;
  position: relative;
  border-bottom: 0.3px solid #f0f0f0;
}
.recommend-con .right .title{
  width: 100%;
  height: 2.5rem;
  font-size: 14px;
  color: #434343;
  overflow: hidden;
 	text-overflow: ellipsis;
 	display: -webkit-box;
 	-webkit-line-clamp: 2;
 	-webkit-box-orient: vertical;
}
.recommend-con .right .goods-icons{
  display: flex;
  margin-top: 5px;
}
.recommend-con .right .goods-icons>div{
  display: flex;
  font-size: 12px;
  font-weight: 700;
}
.recommend-con .right .goods-icons .one{
  background: rgba(255,32,120,.07);
  color: #ff2078;
  line-height: 15px;
}
.recommend-con .right .goods-icons .two{
  background: rgba(218,155,0,.07);
  margin-left: 5px;
  color: #c5854d;
  line-height: 15px;
}
.recommend-con .right .goods-icons img{
  width: 12px;
  height: 12px;
}
.recommend-con .bottom{
  position: absolute;
  bottom: 5px;
  left: 10px;
}
.recommend-con .bottom img{
  width: 24px;
  height: 14px;
  margin-left: 5px;
  margin-top: 7px;
}
.recommend-con .bottom>div{
  display: flex;
}
.recommend-con .bottom .money{
  font-size: 1.1rem;
  font-weight: 700;
  color: red;
}
.recommend-con .bottom .money i{
  font-style: normal;
  font-size: 1.5rem;
}
.recommend-con .bottom .pin{
  color: #999;
  font-size: 0.8rem;
}
.recommend-con .bottom .pin>div{
  border: 1px solid red;
  padding: 1px 3px;
  margin-right: 5px;
  margin-top: -2px;
}
</style>